package com.joney.common.enums;

/**
 * @author wangxianchen
 * @create 2018-01-18
 * @desc 全局错误码
 */
public enum GlobalErrorCodeEnum implements IEnum {

    SUCCESS(0,"成功"),

    FAIL(1,"失败");

    private int code;

    private String msg;

    GlobalErrorCodeEnum(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }

    public void setMsg(String msg){
        this.msg = msg;
    }
}
